using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using PhongKham.Class;

namespace PhongKham
{
    public partial class FrmTemplate : DevExpress.XtraEditors.XtraForm
    {
        
        public FrmTemplate()
        {
            InitializeComponent();
            btnDel.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            btnPrint.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            btnSelect.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            btnAdd.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            btnRevert.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            btnUpdate.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
        }

        public virtual void PerformSave()
        {

        }

        public virtual void PerformRefresh()
        {

        }

        public virtual void PerformDel()
        {

        }

        public virtual void PerformPrint()
        {

        }

        public virtual void PerformSelect()
        {

        }

        public virtual void PerformAdd()
        {

        }

        public virtual void PerformRevert()
        {

        }

        public virtual void PerformUpdate()
        {

        }

        private void btn_Save_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            PerformSave();
        }

        private void btn_Refresh_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            PerformRefresh();
        }

        private void btnPrint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            PerformPrint();
        }

        private void btnDel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            PerformDel();
        }

        private void btnSelect_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            PerformSelect();
        }

        private void btnCancel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            this.Dispose();
        }

        private void btn_Them_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            PerformAdd();
        }
                

        private void btnRevert_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            PerformRevert();
        }

        private void btnUpdate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            PerformUpdate();
        }
        public enum StatusEnum
        {
            KhởiTạo,
            Xem,
            Thêm,
            Sửa,
            Xóa,
            Lưu,
            BỏQua
        }

    }
}